-- GENERATED SPELL FOR [Spirestone Reaver] --


function spell0_9200(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9200', 691, 1)
end

function spell1_9200(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_9200', 5302, 1)
end

function Sorts_9200(pUnit, Event)
local choix_sorts_9200 = math.random(0, 1)
if choix_sorts_9200 == 0 then
pUnit:RegisterEvent('spell0_9200', 1, 1)
end
if choix_sorts_9200 == 1 then
pUnit:RegisterEvent('spell1_9200', 1, 1)
end
end

function mob9200_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9200', math.random(1500, 3000), 1)
end

function mob9200_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9200_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9200_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9200, 1, 'mob9200_Action')
RegisterUnitEvent(9200, 2, 'mob9200_Leave')
RegisterUnitEvent(9200, 3, 'mob9200_Kill')
RegisterUnitEvent(9200, 4, 'mob9200_Die')
